package com.rover022.webgame.view.game {
	import flash.net.URLRequest;
	import org.aswing.JLoadPane;
	import org.aswing.JPanel;
	import org.aswing.LayoutManager;

	/**
	 * @author chenbin01
	 */
	public class BgPanl extends JPanel {
		private var bgsprite :JLoadPane;
		public function BgPanl(layout : LayoutManager = null) {
			super(layout);
			setSizeWH(550, 400);
			bgsprite = new JLoadPane();
			bgsprite.setSizeWH(945,405);
			bgsprite.setLocationXY(-120, 0);
			addChild(bgsprite);
		}

		public function set_UI(src:String) : void {
			var request:URLRequest = new URLRequest(src);
			bgsprite.load(request);
		}
	}
}
